package com.buer.train.business.service;

import com.buer.train.business.domain.UserDO;
import com.buer.train.business.dto.UserDTO;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * 用户表
 * @date 2021-02-23 16:48:27
 */
public interface UserService {
	
	UserDO get(Integer userId);
	
	List<UserDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(UserDO user);
	
	int update(UserDO user);
	
	int remove(Integer userId);
	
	int batchRemove(Integer[] userIds);

    PageInfo<UserDO> getUserList(Map<String, Object> map);

    UserDO getOne(Map<String, Object> map);

	UserDTO getUserDto(Map<String, Object> params);
}
